package com.book.bookmanager.service;

import com.book.bookmanager.mapper.headMapper;
import com.book.bookmanager.pojo.Head;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class headServiceImpl implements headService {
	@Autowired
	private headMapper hd;

	@Override
	public void addheadAddress(Head head) {
		hd.insertheadAddress(head);
	}
	@Override
	public List<Head> queryAll(){
		return hd.selectAll();
	}
}
